This is a misnomer. Planetary nebulae have nothing to do with planets; they're so called because they looked like planets to early astronomers.
© Haydn Thompson 2017